package com.hxzy.module.admin.service;

import com.hxzy.module.admin.entity.AdminRoleInnerModule;
import com.baomidou.mybatisplus.extension.service.IService;

/**
* @author 11452
* @description 针对表【admin_role_inner_module(总部角色模块关联表)】的数据库操作Service
* @createDate 2024-01-28 10:57:28
*/
public interface AdminRoleInnerModuleService extends IService<AdminRoleInnerModule> {

    /**
     * 根据角色id删除模块权限
     * @param roleId
     * @param merchantId
     * @return
     */
    Long deleteModuleByRoleId(Long roleId, Long merchantId);


    /**
     * 根据角色id查询账号的个数
     * @param roleId
     * @return
     */
    long existsAccountInnerRoleByRoleId(Long roleId);
}
